package com.linewell.service;

import com.linewell.pojo.Book;
import com.linewell.util.query.QueryEntity;
import com.linewell.util.query.QueryModel;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @Title: demo
 * @description:
 * @author: hyuhuang@linewell.com
 * @since:2018/4/26
 */
@Service
public interface BookService {

    void insertBook(Book book);

    void deleteBook(String l);

    void update(String id, String updateValue);

    void findBooks(int page, int size);

    void findBookByCon(Map<String, QueryEntity> map, Integer[] sort, String[] field, QueryModel and);

    void findBookSort(Map<String, QueryEntity> map, int page,int size,Integer[] sort, String[] field, QueryModel and);

    void countBook(Map<String, QueryEntity> map, QueryModel and);
}
